﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Study07
{
    class Program
    {
        static void Main(string[] args)
        {
            Hashtable hashtable = new Hashtable();


            hashtable.Add(1, "小红");
            hashtable.Add(2, "小黄");
            hashtable.Add(3, "小蓝");

            foreach (DictionaryEntry item in hashtable)
            {
                Console.WriteLine("序号:{0},姓名:{1}", item.Key, item.Value);
            }
        }
    }
}
